

import 'package:cash_drawer/common/common.dart';
import 'package:cash_drawer/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:device_info/device_info.dart';
import 'base_widget.dart';

class TablePage extends BaseWidget{

  @override
  BaseWidgetState<BaseWidget> attachState() {
    // TODO: implement attachState

    return _TableStatePage();
  }
}

class _TableStatePage extends BaseWidgetState<TablePage>{

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }


  @override
  AppBar attachAppBar() {
    // TODO: implement attachAppBar
    return AppBar(title: Text(AppConfig.deviceInfo.model));
  }

  @override
  Widget attachContentWidget(BuildContext context) {
    // TODO: implement attachContentWidget
    return Scaffold(
      body:Card(color: Colors.blue, child: Text(AppConfig.deviceInfo.device, style: TextStyle(color: Colors.white, fontSize: 18),),),
//      floatingActionButton: !_isShowFAB
//          ? null
//          : FloatingActionButton(
//        heroTag: "knowledge_detail",
//        child: Icon(Icons.arrow_upward),
//        onPressed: () {
//          /// 回到顶部时要执行的动画
//          _scrollController.animateTo(0,
//              duration: Duration(milliseconds: 2000), curve: Curves.ease);
//        },
//      ),
    );
  }

  @override
  void onClickErrorWidget() {
    // TODO: implement onClickErrorWidget
  }

}